package com.wali;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.MultipartConfigFactory;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.boot.web.support.SpringBootServletInitializer;
import org.springframework.context.annotation.Bean;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;

import javax.servlet.MultipartConfigElement;

/**
 * @author walixu
 * @ClassName com.wali
 * @Description 入口
 * @email wali.xu@kpmg.com
 * @date 12/01/2019 2:36 下午
 */
@SpringBootApplication
@ServletComponentScan
@EnableScheduling
@EnableTransactionManagement
public class Application extends SpringBootServletInitializer {


    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
        return application.sources(Application.class);
    }

    /***
     * 服务启动入口
     *
     * @param args
     * @autoor wali
     */
    public static void main(String[] args) {
        SpringApplication.run(Application.class, args);
    }
}
